package org.foreveross.que.vo;

import java.util.ArrayList;
import java.util.List;

import org.apache.commons.lang3.StringUtils;
import org.openkoala.koala.auth.ss3adapter.CustomUserDetails;

import org.foreveross.que.entity.MenuEntity;

public class IndexVo {
	
	
	
	public final static String CUSTOMER_ROLE = "3";

	public static final String CUSTOMER_SERVICE_ROLE = "1";
	
	public static final String ORDER_ROLE = "0";
	
	String username = "";
	
	String password = "";

	String searchType = "one";//one： 最新回复；two；最多回复；three：只看我的 
	
	String sysType = null;
	
	String mid ;
	
	String pid ;
	
	String tid;
	
	String title = "";
	
	Boolean withOutTopic = false;//进入回复页面时是否要查询该话题,控制查询，因为话题可能含有图片，控制加载话题的流量
	
	TopicVo topicVo = new TopicVo();
	
	SayVo sayVo = new SayVo();
	
	MenuEntity menu = new MenuEntity();
	
	List<TreeChildVo> menus = new ArrayList<TreeChildVo>();
	
	PageData pageData = new PageData();
	
	String content ;
	
	String menuDesc = "";
	
	//Boolean launchState = false;//上传成功与否
	
	String msg = "";
	
	 String  authority = "0"; //是否有修改功能描述的权限

	 String roleid = "0";
	 
	 CustomUserDetails loginUser;
	 
	public String getTid() {
		return tid;
	}

	public void setTid(String tid) {
		this.tid = tid;
	}

	public String getMid() {
		return mid;
	}

	public void setMid(String mid) {
		this.mid = mid;
	}

	public TopicVo getTopicVo() {
		return topicVo;
	}

	public void setTopicVo(TopicVo topicVo) {
		this.topicVo = topicVo;
	}
	
	public SayVo getSayVo() {
		return sayVo;
	}

	public void setSayVo(SayVo sayVo) {
		this.sayVo = sayVo;
	}

	public PageData getPageData() {
		return pageData;
	}

	public void setPageData(PageData pageData) {
		this.pageData = pageData;
	}

	public String getContent() {
		return content;
	}

	public void setContent(String content) {
		this.content = content;
	}

	public MenuEntity getMenu() {
		return menu;
	}

	public void setMenu(MenuEntity menu) {
		this.menu = menu;
	}

	public List<TreeChildVo> getMenus() {
		return menus;
	}

	public void setMenus(List<TreeChildVo> menus) {
		this.menus = menus;
	}

	public String getSysType() {
		return sysType;
	}

	public void setSysType(String sysType) {
		this.sysType =  StringUtils.trim(sysType);
	}


	public String getRoleid() {
		return roleid;
	}

	public void setRoleid(String roleid) {
		this.roleid = roleid;
	}

	public String getMenuDesc() {
		return menuDesc;
	}

	public void setMenuDesc(String menuDesc) {
		this.menuDesc = menuDesc;
	}

	public String getSearchType() {
		return searchType;
	}

	public void setSearchType(String searchType) {
		this.searchType = searchType;
	}

	public String getAuthority() {
		return authority;
	}

	public void setAuthority(String authority) {
		this.authority = authority;
	}

	public String getMsg() {
		return msg;
	}

	public void setMsg(String msg) {
		this.msg = msg;
	}

	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	public Boolean getWithOutTopic() {
		return withOutTopic;
	}

	public void setWithOutTopic(Boolean withOutTopic) {
		this.withOutTopic = withOutTopic;
	}

	public String getUsername() {
		return username;
	}

	public void setUsername(String username) {
		this.username = username;
	}

	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public CustomUserDetails getLoginUser() {
		return loginUser;
	}

	public void setLoginUser(CustomUserDetails loginUser) {
		this.loginUser = loginUser;
	}

	public String getPid() {
		return pid;
	}

	public void setPid(String pid) {
		this.pid = pid;
	}
}
